package com.bosssoft.trainee.mbg.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: wuxin
 * @Project: rbac-SpringCloud
 * @Date: 2022/7/18
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QueryVO<T extends Serializable> implements Serializable {
    private Integer pageSize;
    private Integer pageNum;
    private T example;

    public void setPageSize(Integer pageSize) {
        this.pageSize = (pageSize == null ? 10 : pageSize);
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = (pageNum==null?1:pageNum);
    }
}
